/*
 * @Author: Wanko
 * @Date: 2024-06-16 10:34:06
 * @LastEditors: Wanko
 * @LastEditTime: 2024-06-16 10:34:39
 * @Description: 
 */
function getRandomUniqueNumbers(min, max, count) {
  if (count > max - min + 1) return
  const uniqueNumbers = new Set()
  while (uniqueNumbers.size < count) {
    const randomNumber = Math.floor(Math.random() * (max - min + 1)) + min
    uniqueNumbers.add(randomNumber)
  }
  return Array.from(uniqueNumbers)
}

module.exports = {
  getRandomUniqueNumbers 
}